package com.lifa.service.impl;

import com.lifa.dao.TaocanPeizhiDao;
import com.lifa.entity.Taocan;
import com.lifa.service.TaocanPeizhiService;
import com.lifa.service.TaocanService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class TaocanPeizhiServiceImpl implements TaocanPeizhiService {
    @Autowired
    private TaocanPeizhiDao taocanPeizhiDao;
    public List<Taocan> list() {
        return taocanPeizhiDao.query();
    }

    @Override
    public List<Taocan> findAll(String name, int offset, int limit) {
        return taocanPeizhiDao.queryPage(name,offset,limit);
    }

    @Override
    public int findTotalCount(String name) {
        return taocanPeizhiDao.getTotalCount(name);
    }
}
